# Maintainer: Anatol Pomozov
# Contributor: Devin J. Pohly <djpohly+arch@gmail.com>
# Contributor: Andrej Gelenberg <andrej.gelenberg@udo.edu>

pkgname=evtest
pkgver=1.35
pkgrel=1
pkgdesc='Input device event monitor and query tool'
arch=(loong64 x86_64)
url='https://cgit.freedesktop.org/evtest/'
license=(GPL)
depends=(glibc)
makedepends=(asciidoc xmlto)
source=(https://gitlab.freedesktop.org/libevdev/evtest/-/archive/evtest-${pkgver}/evtest-evtest-${pkgver}.tar.gz)
sha1sums=('552c27a04ee55c9aa2893422af8d3299c7497116')

build() {
  cd $pkgname-$pkgname-$pkgver
  ./autogen.sh
  ./configure --prefix=/usr 
  make
}

package() {
  cd $pkgname-$pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}
